project(plasma-applet-salatinoid)

set (CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR} )

# Find the required Libaries
find_package(KDE4 REQUIRED)
include(KDE4Defaults)

 
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(
   ${CMAKE_SOURCE_DIR}
   ${CMAKE_BINARY_DIR}
   ${KDE4_INCLUDES}
   )
 
# We add our source code here
set(plasma_applet_salatinoid_SRCS plasma-applet-salatinoid.cpp config_dlg.cpp graphicstextwidget.cpp)
 
# Now make sure all files get to the right place
kde4_add_ui_files(plasma_applet_salatinoid_SRCS config_widget_general.ui )
kde4_add_kcfg_files(plasma_applet_salatinoid_SRCS plasma-applet-salatinoidconfig.kcfgc )
kde4_add_plugin(plasma_applet_salatinoid ${plasma_applet_salatinoid_SRCS})

target_link_libraries(plasma_applet_salatinoid ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} ${KDE4_KNOTIFYCONFIG_LIBS})

add_subdirectory( i18n )
 
install(TARGETS plasma_applet_salatinoid DESTINATION ${PLUGIN_INSTALL_DIR})
install( FILES plasma-applet-salatinoid.notifyrc DESTINATION ${KDE4_DATA_INSTALL_DIR}/plasma-applet-salatinoid)
install( FILES data/plasma-applet-salatinoid-background.png DESTINATION ${KDE4_DATA_INSTALL_DIR}/desktoptheme/default/widgets)
 
install(FILES data/plasma-applet-salatinoid.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(FILES data/salatinoid_hayy.ogg DESTINATION ${SOUND_INSTALL_DIR})

kde4_install_icons( ${ICON_INSTALL_DIR} )
